﻿using LPP.Entity.AppUser;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPP.Entity.ChatMessage
{
    public class ChatMessage
    {
        [Key]
        public Guid MessageId { get; set; }
        public int SenderId { get; set; }
        public int ReceiverId { get; set; }
        public string Content { get; set; }
        public DateTime SendTime { get; set; }
        public bool IsRead { get; set; }

        // 导航属性
        public virtual Users Sender { get; set; }
        public virtual Users Receiver { get; set; }
    }
}
